<template>
	<div class="testState">
		<span>{{store.state.greet}}</span>----
		<span>{{store.state.target}}</span>
	</div>
</template>

<script setup>
	import {
		useStore
	} from 'vuex'
	// 使用 useStore 组合式函数来检索 store
	const store = useStore()
	console.log(store);
</script>

<style>
	#app {
		font-family: Avenir, Helvetica, Arial, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-align: center;
		color: #2c3e50;
		margin-top: 60px;
	}
</style>
